package org.example.erat.model;

import java.util.ArrayList;
import java.util.List;

public class CompositeReportNode {
    private String name;
    private List<CompositeReportNode> children = new ArrayList<>();

    public CompositeReportNode(String name) {
        this.name = name;
    }

    public void add(CompositeReportNode node) {
        children.add(node);
    }

    public List<CompositeReportNode> getChildren() {
        return children;
    }

    public String getName() {
        return name;
    }
}
